package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuppliesMapper;
import com.ruoyi.system.domain.Supplies;
import com.ruoyi.system.service.ISuppliesService;

/**
 * 办公用品Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-03
 */
@Service
public class SuppliesServiceImpl implements ISuppliesService 
{
    @Autowired
    private SuppliesMapper suppliesMapper;

    /**
     * 查询办公用品
     * 
     * @param id 办公用品主键
     * @return 办公用品
     */
    @Override
    public Supplies selectSuppliesById(Long id)
    {
        return suppliesMapper.selectSuppliesById(id);
    }

    /**
     * 查询办公用品列表
     * 
     * @param supplies 办公用品
     * @return 办公用品
     */
    @Override
    public List<Supplies> selectSuppliesList(Supplies supplies)
    {
        return suppliesMapper.selectSuppliesList(supplies);
    }

    /**
     * 新增办公用品
     * 
     * @param supplies 办公用品
     * @return 结果
     */
    @Override
    public int insertSupplies(Supplies supplies)
    {
        return suppliesMapper.insertSupplies(supplies);
    }

    /**
     * 修改办公用品
     * 
     * @param supplies 办公用品
     * @return 结果
     */
    @Override
    public int updateSupplies(Supplies supplies)
    {
        return suppliesMapper.updateSupplies(supplies);
    }

    /**
     * 批量删除办公用品
     * 
     * @param ids 需要删除的办公用品主键
     * @return 结果
     */
    @Override
    public int deleteSuppliesByIds(Long[] ids)
    {
        return suppliesMapper.deleteSuppliesByIds(ids);
    }

    /**
     * 删除办公用品信息
     * 
     * @param id 办公用品主键
     * @return 结果
     */
    @Override
    public int deleteSuppliesById(Long id)
    {
        return suppliesMapper.deleteSuppliesById(id);
    }
}
